Bind GraphService to Wails frontend - #50
Conversation
Register the resource GraphService as a Wails service, exposing GetRelated, GetRelationshipChain, and GetDependencyTree to the UI.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe PR introduces a new GraphService for dependency graph operations with three query functions (GetDependencyTree, GetRelated, GetRelationshipChain). Backend initialization wires the service in main.go, while corresponding TypeScript bindings are auto-generated including model classes for graph structures and frontend-accessible service functions. Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Frontend Client
participant Wails as Wails Runtime
participant GraphService as GraphService Backend
participant Graph as Graph Engine
Client->>Wails: GetDependencyTree(pluginID, connectionID, resourceKey, ...)
Wails->>GraphService: GetDependencyTree(...)
GraphService->>Graph: Query dependency structure
Graph-->>GraphService: Raw graph data
GraphService-->>Wails: Typed DependencyTree result
Wails->>Client: DependencyTree (model instance)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
GraphServiceas a Wails service inmain.go, exposing graph traversal methods to the UIGetRelated,GetRelationshipChain, andGetDependencyTreefeat/bind-graph-servicebranch which was based on the pre-wails3 codebaseTest plan
task devstarts without errorsSummary by CodeRabbit